package com.mark.spring.service;

import com.mark.spring.dao.PersonDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * Created by Choisaaaa on 2018/7/9.
 */
@Service
public class PersonService {

    @Autowired(required=false)
    @Qualifier("personDao")
    private PersonDao personDao;

    public void print(){
        System.out.println("**********获取到的bean是************"+personDao.getTag());
    }
}
